home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Multimedia / Movie3.0 / Source / mpegDecode / proto.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-05  |  2.6 KB  |  79 lines

  1. #ifdef __STDC__
  2. # define    P(s) s
  3. #else
  4. # define P(s) ()
  5. #endif
  6.  
  7.  
  8. /* util.c */
  9. void correct_underflow P((void ));
  10. int next_bits P((int num , unsigned int mask ));
  11. char *get_ext_data P((void ));
  12. int next_start_code P((void ));
  13. char *get_extra_bit_info P((void ));
  14.  
  15. /* video.c */
  16. void init_stats P((void ));
  17. void PrintAllStats P((void ));
  18. double ReadSysClock P((void ));
  19. void PrintTimeInfo P((void ));
  20. VidStream *NewVidStream P((int bufLength ));
  21. void DestroyVidStream P((VidStream *astream ));
  22. PictImage *NewPictImage P((unsigned int width , unsigned int height ));
  23. void DestroyPictImage P((PictImage *apictimage ));
  24. VidStream *mpegVidRsrc P((TimeStamp time_stamp , VidStream *vid_stream ));
  25. void ToggleBFlag P((void ));
  26. void TogglePFlag P((void ));
  27.  
  28. /* parseblock.c */
  29. void ParseReconBlock P((int n ));
  30. void ParseAwayBlock P((int n ));
  31.  
  32. /* motionvector.c */
  33. void ComputeForwVector P((int *recon_right_for_ptr , int *recon_down_for_ptr ));
  34. void ComputeBackVector P((int *recon_right_back_ptr , int *recon_down_back_ptr ));
  35.  
  36. /* decoders.c */
  37. void init_tables P((void ));
  38. void decodeDCTDCSizeLum P((unsigned int *value ));
  39. void decodeDCTDCSizeChrom P((unsigned int *value ));
  40. void decodeDCTCoeffFirst P((unsigned int *run , int *level ));
  41. void decodeDCTCoeffNext P((unsigned int *run , int *level ));
  42.  
  43. /* main.c */
  44. int get_more_data P((unsigned int *buf_start , int max_length , int *length_ptr , unsigned int **buf_ptr ));
  45. int int_handler();
  46. void main P((int argc , char **argv ));
  47. void usage P((char *s ));
  48. void DoDitherImage P((unsigned char *l , unsigned char *Cr , unsigned char *Cb , unsigned char *disp , int h , int w ));
  49.  
  50. /* gdith.c */
  51. void InitColor P((void ));
  52. //int HandleXError P((Display *dpy , XErrorEvent *event ));
  53. void InstallXErrorHandler P((void ));
  54. void DeInstallXErrorHandler P((void ));
  55. void ResizeDisplay P((int w , int h ));
  56. void InitDisplay P((char *name ));
  57. void InitGrayDisplay P((char *name ));
  58. void InitMonoDisplay P((char *name ));
  59. void InitColorDisplay P((char *name ));
  60. void ExecuteDisplay P((VidStream *vid_stream ));
  61.  
  62. /* gray.c */
  63. void GrayDitherImage P((unsigned char *lum , unsigned char *cr , unsigned char *cb , unsigned char *out , int h , int w ));
  64.  
  65. /* mono.c */
  66.  
  67. /* jrevdct.c */
  68. void init_pre_idct P((void ));
  69. void j_rev_dct_sparse P((DCTBLOCK data , int pos ));
  70. void j_rev_dct P((DCTBLOCK data ));
  71. void j_rev_dct_sparse P((DCTBLOCK data , int pos ));
  72. void j_rev_dct P((DCTBLOCK data ));
  73.  
  74. /* 24bit.c */
  75. void InitColorDither P((void ));
  76. void ColorDitherImage P((unsigned char *lum , unsigned char *cr , unsigned char *cb , unsigned char *out , int rows , int cols ));
  77.  
  78. #undef P
  79.